package com.restaurant.application.indexes.consumptionlist.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.consumption.support.OrderData;
import com.restaurant.application.indexes.consumptionlist.AssistConsumptionList;
import com.restaurant.application.minifacade.data.ConsumptionListBO;

import java.util.List;

public class AssistConsumptionListOutFace implements AssistConsumptionList {
    private AssistConsumptionListBase base;

    public AssistConsumptionListOutFace(AssistConsumptionListBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public String bandToCustomer(BandBean arg0) {
        return (String) base.call("bandToCustomer", arg0);
    }

    @Override
    public List getOrderList(OrderData arg0) {
        return (List) base.call("getOrderList", arg0);
    }

    @Override
    public ConsumptionListBO getHistory() {
        return (ConsumptionListBO) base.call("getHistory");
    }

    @Override
    public Double getTotal(UID arg0) {
        return (Double) base.call("getTotal", arg0);
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public View getFullView() {
        return (View)base.call("getFullView");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View) base.call("getViewLead", arg0);
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }
}
